#include "debug.h"

void UartInit(void)		//9600bps@11.0592MHz
{
	
   SCON=0x50;
	 TMOD=0x20;
	 TH1=0xFD;
	 TL1=0xFD;
	 TR1=1;
}

char putchar(char c)
{
    UartInit();
    ES = 0;
    SBUF = c;
    while (TI == 0);
    TI = 0;
    ES = 1;
    return 0;
}
